// 存数据
export function localSet (key, value) {
  window.localStorage.setItem(key, JSON.stringify(value))
}
// 取数据
export function localGet (key) {
  return JSON.parse(window.localStorage.getItem(key))
}
// 删数据
export function localDel (key) {
  window.localStorage.removeItem(key)
}
// 删除全部数据
export function localClear () {
  window.localStorage.clear()
}
